package cursed.server.server;

import java.util.ArrayList;
import java.util.List;

public class GameRoomManager {
	private static GameRoomManager _instance;
	private static List<GameRoom> roomList = new ArrayList<GameRoom>();

	public static GameRoomManager getInstance() {
		if (_instance == null) {
			_instance = new GameRoomManager();
		}
		return _instance;
	}

	/**
	 * @return the roomList
	 */
	public static List<GameRoom> getRoomList() {
		return roomList;
	}

	/**
	 * @param roomList the roomList to set
	 */
	public static void setRoomList(List<GameRoom> roomList) {
		GameRoomManager.roomList = roomList;
	}
}
